package utn.frsf.cidisi.upcolbpip.interactionprotocols.diagram.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.gef.rulers.RulerProvider;
import org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants;
import org.eclipse.gmf.runtime.notation.Routing;
import org.eclipse.jface.preference.IPreferenceStore;

import utn.frsf.cidisi.upcolbpip.interactionprotocols.diagram.part.UpcolbpipDiagramEditorPlugin;

/**
 * @generated
 */
public class DiagramPreferenceInitializer extends AbstractPreferenceInitializer {

	/**
	 * @generated
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = getPreferenceStore();
		DiagramPrintingPreferencePage.initDefaults(store);

		store.setDefault(IPreferenceConstants.PREF_SHOW_CONNECTION_HANDLES,
				true);
		store.setDefault(IPreferenceConstants.PREF_SHOW_POPUP_BARS, true);
		store
				.setDefault(IPreferenceConstants.PREF_ENABLE_ANIMATED_LAYOUT,
						true);
		store.setDefault(IPreferenceConstants.PREF_ENABLE_ANIMATED_ZOOM, true);
		store.setDefault(IPreferenceConstants.PREF_ENABLE_ANTIALIAS, true);
		store.setDefault(IPreferenceConstants.PREF_LINE_STYLE,
				Routing.RECTILINEAR);
		store.setDefault(IPreferenceConstants.PREF_SHOW_RULERS, false);
		store.setDefault(IPreferenceConstants.PREF_RULER_UNITS, false);
		store.setDefault(IPreferenceConstants.PREF_SHOW_GRID,
				RulerProvider.UNIT_INCHES);
		store.setDefault(IPreferenceConstants.PREF_SNAP_TO_GRID, true);
		store.setDefault(IPreferenceConstants.PREF_GRID_SPACING, 0.05);
		store.setDefault(IPreferenceConstants.PREF_PROMPT_ON_DEL_FROM_MODEL,
				false);
		store.setDefault(IPreferenceConstants.PREF_PROMPT_ON_DEL_FROM_DIAGRAM,
				false);
	}

	/**
	 * @generated
	 */
	protected IPreferenceStore getPreferenceStore() {
		return UpcolbpipDiagramEditorPlugin.getInstance().getPreferenceStore();
	}
}
